import { service } from "../service/request";

//查询
export async function Query(data: any) {
  return await service({
    url: "API/Main/Query",
    method: "post",
    data,
  });
}

//登录-下拉框
export async function GetValue(data: any) {
  return await service({
    url: "API/Login/Query",
    method: "post",
    data,
  });
}

//操作
export async function Operate(data: any) {
  return await service({
    url: "API/Main/Operate",
    method: "post",
    data,
  });
}

//获取设备名称
export async function GetDeviceName() {
  return await service({
    url: "DMS/KSKH/GetDeviceName",
    method: "post",
  });
}

//获取设备信息
export async function GetDeviceList() {
  return await service({
    url: "DMS/KSKH/GetDeviceList",
    method: "post",
  });
}

//保存设备信息
export async function SaveDeviceInfo(data) {
  return await service({
    url: "DMS/KSKH/SaveDeviceInfo",
    method: "post",
    data,
  });
}
